#include "proc.h"
int main()
{
    // 打开管道文件
    int id = open(PIPE_NAME, O_RDONLY);
    assert(id != -1);
    // 写入管道
    char buff[1024] = {0};
    ssize_t num = read(id, buff, sizeof(buff) - 1);
    assert(num != -1);
    buff[num] = 0;
    cout << buff << endl;
    return 0;
}